import UIKit
import HandyJSON
import Foundation
enum OsnDappType:Int {
    case dapp
    case ims
    
    init(rawValue: Int) {
        switch rawValue {
        case 0: self = .dapp
        case 1: self = .ims
        default: self = .dapp
        }
    }
}
class DMCCDapp : HandyJSON {
    var id:Int64 = 0
    var type = OsnDappType.dapp
    var serviceId = ""
    var name = ""
    var displayName = ""
    var portrait = ""
    var theme = ""
    var url = ""
    var info = ""
    var param = ""
    var urlParam = ""
    var fromUser = ""
    var shareId = ""
    var dappInfo = ""
    var target = ""
    
    
    required init() {
        
        if target.count == 0 {
            target = serviceId
        }
    }
}
